public with sharing class icn_jobs {
   
   

   DisplayJobs[] jobPosition;
   public class DisplayJobs {
     public Occupation__c jobs { get; set; }
     
     public DisplayJobs(Occupation__c item) {
        this.jobs = item;
     }
   }
   
   
   
   public DisplayJobs[] getJobPosition() {
     if (jobPosition == null) {
         jobPosition = new DisplayJobs[]{};
         for (Occupation__c item : 
                                [SELECT id, name
                                 FROM Occupation__c Order By Name LIMIT 999]) {
       jobPosition.add(new DisplayJobs(item));
       }
     }
     return jobPosition;      
   }
   
   
   
   
}